import request from '@/utils/request'

export const addOneConfig = data => request({
  url: '/addOneConfig',
  method: 'put',
  data: data || {}
})

export const deleteOneConfig = id => request({
  url: '/deleteOneConfig/' + id,
  method: 'delete'
})

export const updateOneConfig = data => request({
  url: '/updateOneConfig',
  method: 'patch',
  data: data || {}
})

export const getOneConfig = id => request({
  url: '/getOneConfig/' + id,
  method: 'get'
})

export const getConfigList = data => request({
  url: '/getConfigList',
  method: 'post',
  data: data || {}
})

export const getAllConfigList = () => request({
  url: '/getAllConfigList',
  method: 'get'
})
